package com.itheima.pojo.vo;

import com.itheima.pojo.po.Student;

import java.io.Serializable;
import java.util.List;
/*
*   PageBean 封装
* */
public class PageBean implements Serializable {
        // 2. 数据库查询得到
    private List rows; //每页查询的联系人数据
    private Integer total; // 总记录数

    public PageBean() {
    }

    public PageBean(List rows, Integer total) {
        this.rows = rows;
        this.total = total;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "rows=" + rows +
                ", total=" + total +
                '}';
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
